package com.ruoyi.durian.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 优惠券模块-套餐表
 * @TableName ll_thali
 */
@TableName(value ="ll_thali")
public class LlThali implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 优惠券id
     */
    private Integer couponId;

    /**
     * 套餐名称
     */
    private String name;

    /**
     * 封面路径
     */
    private String image;

    /**
     * 优惠券的类型 0打折 or 1满减
     */
    private Integer type;

    /**
     * 上下架状态（1上架0下架）
     */
    private Integer status;

    /**
     * 套餐的价钱
     */
    private BigDecimal money;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**
     * 购买须知
     */
    private String notice;

    /**
     * 最高省多少
     */
    private BigDecimal maxMoney;

    /**
     * 优惠券个数
     */
    private Integer couponNum;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getCouponId() {
        return couponId;
    }

    /**
     * 
     */
    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    /**
     * 优惠券
     */
    public Integer getId() {
        return id;
    }

    /**
     * 优惠券
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 套餐名称
     */
    public String getName() {
        return name;
    }

    /**
     * 套餐名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 封面路径
     */
    public String getImage() {
        return image;
    }

    /**
     * 封面路径
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * 优惠券的类型 0打折 or 1满减
     */
    public Integer getType() {
        return type;
    }

    /**
     * 优惠券的类型 0打折 or 1满减
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 上下架状态（1上架0下架）
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 上下架状态（1上架0下架）
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 套餐的价钱
     */
    public BigDecimal getMoney() {
        return money;
    }

    /**
     * 套餐的价钱
     */
    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    /**
     * 开始时间
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * 开始时间
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * 结束时间
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * 结束时间
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 购买须知
     */
    public String getNotice() {
        return notice;
    }

    /**
     * 购买须知
     */
    public void setNotice(String notice) {
        this.notice = notice;
    }

    /**
     * 最高省多少
     */
    public BigDecimal getMaxMoney() {
        return maxMoney;
    }

    /**
     * 最高省多少
     */
    public void setMaxMoney(BigDecimal maxMoney) {
        this.maxMoney = maxMoney;
    }

    /**
     * 优惠券个数
     */
    public Integer getCouponNum() {
        return couponNum;
    }

    /**
     * 优惠券个数
     */
    public void setCouponNum(Integer couponNum) {
        this.couponNum = couponNum;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 是否删除
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 是否删除
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LlThali other = (LlThali) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCouponId() == null ? other.getCouponId() == null : this.getCouponId().equals(other.getCouponId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getImage() == null ? other.getImage() == null : this.getImage().equals(other.getImage()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getNotice() == null ? other.getNotice() == null : this.getNotice().equals(other.getNotice()))
            && (this.getMaxMoney() == null ? other.getMaxMoney() == null : this.getMaxMoney().equals(other.getMaxMoney()))
            && (this.getCouponNum() == null ? other.getCouponNum() == null : this.getCouponNum().equals(other.getCouponNum()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCouponId() == null) ? 0 : getCouponId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getImage() == null) ? 0 : getImage().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getNotice() == null) ? 0 : getNotice().hashCode());
        result = prime * result + ((getMaxMoney() == null) ? 0 : getMaxMoney().hashCode());
        result = prime * result + ((getCouponNum() == null) ? 0 : getCouponNum().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", couponId=").append(couponId);
        sb.append(", name=").append(name);
        sb.append(", image=").append(image);
        sb.append(", type=").append(type);
        sb.append(", money=").append(money);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", notice=").append(notice);
        sb.append(", maxMoney=").append(maxMoney);
        sb.append(", couponNum=").append(couponNum);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}